class ENV:
    # 被测环境
    URL = "http://127.0.0.1:8000/"
    # 自动化测试通用账号和密码
    username = "admin123"
    password = "admin123"
    host_ip = URL.split('/')[2].split(':')[0]


class DBSql:
    """
    初始化时清除数据sql语句与插入语句：根据自己的项目要求写sql
    清空：用户，购物车，订单信息
    插入：测试用户 admin123
    """
    # sql_file = rf'\\{ENV.host_ip}\daily_fresh_demo-master\db.sqlite3'   # 另一台电脑
    sql_file = rf'C:\Users\PC\Desktop\lsy\电子商城管理系统Django\dailyfresh\db.sqlite3'  # 本地   D:\电子商城系统\daily_fresh_demo-master\db.sqlite3

    sql_list = [
        'DELETE FROM df_order_orderdetailinfo',
        'DELETE FROM df_order_orderinfo',
        'DELETE FROM df_user_userinfo',
        'DELETE FROM df_cart_cartinfo',
        "INSERT INTO 'df_user_userinfo' VALUES ('41','admin123','f865b53623b121fd34ee5426c792e5c33af8c227','111@qq.com','','','','')"
    ]
